import ttkbootstrap as ttk
from ttkbootstrap.constants import *
from ttkbootstrap import Style
from tkinter import filedialog
from concurrent.futures import ThreadPoolExecutor
import threading
root =ttk.Window(
    title="识颜",  # 设置窗口的标题
    themename="litera",  # 设置主题
    size=(600, 500),  # 窗口的大小
    position=(700, 200),  # 窗口所在的位置
    minsize=(0, 0),  # 窗口的最小宽高
    maxsize=(1920, 1080),  # 窗口的最大宽高
    resizable=None,  # 设置窗口是否可以更改大小
    alpha=1.0,  # 设置窗口的透明度(0.0完全透明）
)
import verify
def open1():
    style = Style(theme='united')
    import dlibtry
def open2():
    style = Style(theme='minty')
    import DNN
def open3():
    style = Style(theme='sandstone')
    import picvid


hdr = ttk.Label(text="识颜——基于人脸识别的照片管理系统", bootstyle=INFO, font=("微软雅黑", 14), width=300).pack(ipadx=300, padx=50,pady=30)

lf = ttk.Labelframe(text="选择分类方式", bootstyle=INFO, width=100, height=60)
lf.place(x=100, y=100, width=300, height=320)
ttk.Button(lf, text="dlib分类", bootstyle=INFO, command=open1).pack(ipadx=60, ipady=10, pady=20)
ttk.Button(lf, text="OpenCV分类",bootstyle=INFO, command=open2).pack(ipadx=45, ipady=10, pady=20)
ttk.Button(lf, text="时间分类", bootstyle=INFO, command=open3).pack(ipadx=60, ipady=10, pady=20)
root.mainloop()